package singleton;

/**
 * 饥汉式
 *
 * @author zhangxi
 * @date 2021/1/12
 */
public class HungrySingle {

    private HungrySingle() {
    }

    private static final HungrySingle hungrySingle = new HungrySingle();

    public static HungrySingle getInstance() {
        return hungrySingle;
    }

}
